home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / graphics.17 / graphics / graphics-0.17 / plot2fig / Makefile < prev    next >
Encoding:
Makefile  |  1991-03-12  |  3.0 KB  |  83 lines

  1. # This is the Makefile for plot2fig, a plot file to transfig translator.
  2. #CC=gcc
  3. #CFLAGS=-g
  4. CC=cc
  5. CFLAGS=-O
  6. GETOPT=../getopt
  7. #----------------------------------------------------------------
  8. # The toplevel make file uses these.
  9. .PHONY: all install clean realclean
  10.  
  11. # $(DEV) indicates which graphics device this library supports.
  12. DEV=fig
  13. all : plot2$(DEV)
  14.  
  15. VERS=0.4
  16. .c.o:
  17.     $(CC) $(CFLAGS) -I$(GETOPT) -I../include -DVERS=\"$(VERS)\" -c $<
  18.  
  19. plot.o : ../plot2tek/plot.c ../include/libplot.h
  20.     $(CC) $(CFLAGS) -I$(GETOPT) -I../include -DVERS=\"$(VERS)\" -c $<
  21.  
  22. install : plot2$(DEV)
  23.     install -c plot2$(DEV) $(BINDIR)
  24.     install -c plot2$(DEV).man $(MANDIR)/plot2$(DEV).$(MANEXT)
  25. clean :
  26.     -rm -f *.o *~ \#* core test* diff TAGS CHECKSUMS
  27. realclean : clean
  28.     -rm -f plot2$(DEV) *.a
  29. #----------------------------------------------------------------
  30.  
  31. plot2$(DEV) : plot.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o lib$(DEV).a
  32.     $(CC) $(CFLAGS) -o plot2$(DEV) plot.o $(GETOPT)/getopt.o $(GETOPT)/getopt1.o lib$(DEV).a -lm
  33.  
  34. $(GETOPT)/getopt.o $(GETOPT)/getopt1.o : $(GETOPT)/getopt.c $(GETOPT)/getopt1.c
  35.     cd $(GETOPT); make all CC="$(CC)" CFLAGS="$(CFLAGS)"
  36. $(GETOPT)/getopt.o : $(GETOPT)/getopt.h $(GETOPT)/getopt.h
  37. $(GETOPT)/getopt1.o : $(GETOPT)/getopt.h $(GETOPT)/getopt.h
  38. #
  39. # Type `make libfig.a' to creaate the plot compatible library of
  40. # functions for postscript output.
  41. #
  42. LSRC = openpl.c closepl.c space.c rotate.c dot.c point.c \
  43. linemod.c line.c label.c alabel.c erase.c color.c move.c cont.c \
  44. arc.c circle.c fontname.c fontsize.c fill.c draw_line.c
  45.  
  46. LOBJ = openpl.o closepl.o space.o rotate.o dot.o point.o \
  47. linemod.o line.o label.o alabel.o erase.o color.o move.o cont.o \
  48. arc.o circle.o fontname.o fontsize.o fill.o draw_line.o
  49.  
  50. lib$(DEV).a : $(LOBJ)
  51.     ar ru lib$(DEV).a $?
  52.     ranlib lib$(DEV).a
  53.  
  54. #
  55. # Type `make TAGS' to update the TAGS file for use with GNU emacs.
  56. #
  57. TAGS : plot.c $(LSRC) ../include/libplot.h
  58.     etags plot.c $(LSRC) ../include/libplot.h
  59.  
  60. #----------------------------------------------------------------
  61. # Dependencies generated by gcc -MM *.c *.h:
  62. #
  63. alabel.o : alabel.c ../include/libplot.h extern.h
  64. arc.o : arc.c ../include/libplot.h extern.h
  65. circle.o : circle.c ../include/libplot.h extern.h
  66. closepl.o : closepl.c ../include/libplot.h extern.h
  67. color.o : color.c ../include/libplot.h extern.h
  68. cont.o : cont.c ../include/libplot.h extern.h
  69. dot.o : dot.c ../include/libplot.h extern.h
  70. draw_line.o : draw_line.c ../include/libplot.h extern.h
  71. erase.o : erase.c ../include/libplot.h extern.h
  72. fill.o : fill.c ../include/libplot.h extern.h
  73. fontname.o : fontname.c ../include/libplot.h extern.h
  74. fontsize.o : fontsize.c ../include/libplot.h extern.h
  75. label.o : label.c ../include/libplot.h extern.h
  76. line.o : line.c ../include/libplot.h extern.h
  77. linemod.o : linemod.c ../include/libplot.h extern.h
  78. move.o : move.c ../include/libplot.h extern.h
  79. openpl.o : openpl.c ../include/libplot.h extern.h
  80. point.o : point.c ../include/libplot.h extern.h
  81. rotate.o : rotate.c ../include/libplot.h extern.h
  82. space.o : space.c ../include/libplot.h extern.h
  83.